﻿<Window x:Class="XamlToPDFLiveTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:XamlToPDFLiveTest"
        Title="MainWindow" Height="800" Width="1024">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="5" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <ListBox 
            x:Name="pdfList" 
            SelectionChanged="pdfList_SelectionChanged"
            MinWidth="200"
            />
        <TabControl Grid.Column="2">
            <TabItem Header="PDF">
                <WindowsFormsHost>
                    <WindowsFormsHost.Child>
                        <local:PDFViewer x:Name="pdfViewer" />
                    </WindowsFormsHost.Child>
                </WindowsFormsHost>
            </TabItem>
            <TabItem Header="Source">
                <TextBox AcceptsReturn="True" AcceptsTab="True" x:Name="source"
                    VerticalScrollBarVisibility="Auto"
                    HorizontalScrollBarVisibility="Auto" />
            </TabItem>
            <TabItem Header="XAML">
                <DocumentViewer
                    Name="documentViewer1">
                </DocumentViewer>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
